package com.liumuxian.base;


import com.liumuxian.base.pojo.IntegralData;
import com.liumuxian.base.pojo.IntegralType;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import util.IdWorker;
import util.VagueUtil;

/**
 * 启动类
 */
@SpringBootApplication
@EnableEurekaClient//服务端
public class BaseApplication {
    public static void main(String[] args) {
        SpringApplication.run(BaseApplication.class);
    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1,1);
    }
    @Bean
    public VagueUtil<IntegralData> ordersVagueUtil1(){
        return new VagueUtil<IntegralData>();
    }
    @Bean
    public VagueUtil<IntegralType> ordersVagueUtil2(){
        return new VagueUtil<IntegralType>();
    }
}

